home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
mgbonus.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-06-11
|
6KB
|
122 lines
Echo Off
if "%1"=="" goto firstScreen
if "%2"=="" goto error2
if "%3"=="" goto error2
:firstScreen
Cls
Echo ┌────────────────────────────────────────────────────────────────────┐
Echo │ Lotus Magellan 2.0 Bonus Viewer Disk Install │
Echo │ Copyright (C) 1990 Lotus Development Corporation │
Echo │ All rights reserved. │
Echo ├────────────────────────────────────────────────────────────────────┤
Echo │ │
Echo │ This batch program will install the Bonus Viewer Disk from │
if "%1"=="" goto aDrive
Echo │ drive %1 to the directory %2%3.
Echo │ │
goto rest
:aDrive
Echo │ drive A to the directory C:\MAG2. │
Echo │ │
:rest
Echo │ │
Echo │ If you desire to install from a different drive or to a │
Echo │ different directory name (e.g., from drive B and to D:\MAGELLAN │
Echo │ press [Ctrl][Break] to quit from this program and then type: │
Echo │ │
Echo │ INSTALL B: D: \MAGELLAN │
Echo │ │
Echo │ Note: if you are not installing to C:\MAG2 from the A drive, │
Echo │ you must specify all three parameters. │
Echo │ │
Echo │ Otherwise, PRESS ANY KEY to continue installing. │
Echo └────────────────────────────────────────────────────────────────────┘
pause
Cls
if not "%1"=="" goto otherDrive
Echo Installing Bonus Viewer Disk files from drive A to C:\MAG2.
Echo Please wait . . .
Echo ─────────────────────────────────────────────────────────────────────────────
C:
CD \MAG2
COPY A:BONUS.DOC >NUL
COPY A:*.ICO >NUL
COPY A:*.PIF >NUL
CD MGVIEWER
if exist aworksdb.vw2 DEL AWORKSDB.VW2
A:VIEWERS >NUL
goto endScreen
:otherDrive
if "%2"=="" goto error2
if "%3"=="" goto error2
Echo Installing Bonus Viewer Disk files from drive %1 to %2%3.
Echo Please wait . . .
Echo ─────────────────────────────────────────────────────────────────────────────
%2
CD %3
COPY %1BONUS.DOC >NUL
COPY %1*.ICO >NUL
COPY %1*.PIF >NUL
CD MGVIEWER
if exist aworksdb.vw2 DEL AWORKSDB.VW2
%1VIEWERS >NUL
:endScreen
Cls
Echo ┌────────────────────────────────────────────────────────┐
Echo │ Lotus Magellan 2.0 Bonus Viewer Disk Install │
Echo │ Copyright (C) 1990 Lotus Development Corporation │
Echo │ All rights reserved. │
Echo ├────────────────────────────────────────────────────────┤
Echo │ │
Echo │ │
Echo │ The Magellan 2.0 Bonus Viewer Disk files have │
Echo │ been successfully installed onto your hard disk. │
Echo │ │
Echo │ │
Echo │ To start Magellan, type MG [ENTER]. │
Echo │ │
Echo │ │
Echo │ Note: For the latest notes and information about │
Echo │ Magellan, type: TYPE BONUS.DOC [ENTER]. │
Echo │ │
Echo │ │
Echo └────────────────────────────────────────────────────────┘
CD ..
goto end
:error
Echo ┌──────────────────────────────────────────────────────────────┐
Echo │ Lotus Magellan 2.0 Bonus Viewer Disk Install │
Echo │ Copyright (C) 1990 Lotus Development Corporation │
Echo │ All rights reserved. │
Echo ├──────────────────────────────────────────────────────────────┤
Echo │ The Magellan Bonus Viewer Disk was NOT │
Echo │ successfully installed onto your hard disk. │
Echo │ │
if not "%1"=="" goto difDrive
Echo │ ■ The directory C:\MAG2 may not exist. │
Echo │ │
goto more
:difDrive
Echo │ ■ The directory %2%3 may not exist.
Echo │ │
:more
Echo │ │
Echo │ ■ Check to see if the disk is full, and clear │
Echo │ some space if necessary. │
Echo │ │
Echo │ ■ Access to the disk may be read-only. │
Echo │ │
Echo │ ■ Consider the possibility of a disk error. │
Echo └──────────────────────────────────────────────────────────────┘
goto end
:error2
Echo If you are copying from your A drive to the \MAG2 directory on your
Echo C: drive, type INSTALL. Otherwise, you must specify three parameters
Echo to this batch file. E.g., if you are copying files from your A drive
Echo to the \MAGELLAN directory on your D: drive, type
Echo INSTALL A: D: \MAGELLAN
Echo You must specify the colons after the drive letters, and put a space
Echo between the hard drive and the directory name.
Echo On
:end